package com.biz.service;

import com.core.entity.AccessRight;
import com.sign.signsystem.R;

public class PassWordService {
	public PassWordService(){}
	public AccessRight getAccessRight(String name, String password, int id){
		if (name.equalsIgnoreCase("teacher") && id == R.id.teacher_radio)  {
			return AccessRight.teacher;
		} else if (name.equalsIgnoreCase("student") && id == R.id.student_radio){
			return AccessRight.student;
		}
		return AccessRight.noRight;
	}
}
